package entity;

import entity.annotation.Id;
import entity.annotation.Manytoone;
import entity.annotation.Table;

@Table(name = "tb_student")
public class Student {
	@Id
	private Integer SID;	
	private String STUDENT_NAME;
	private String STUDENT_ADDRESS;
	private Integer DEPOT_ID;
	public Integer getDEPOT_ID() {
		return DEPOT_ID;
	}

	public void setDEPOT_ID(Integer dEPOT_ID) {
		DEPOT_ID = dEPOT_ID;
	}

	@Manytoone(mapby="tb_depot",id="depot_id",fk="depot_id")
	private Depot depot;
	
	public Integer getSID() {
		return SID;
	}

	public void setSID(Integer sID) {
		SID = sID;
	}

	public String getSTUDENT_NAME() {
		return STUDENT_NAME;
	}

	public void setSTUDENT_NAME(String sTUDENT_NAME) {
		STUDENT_NAME = sTUDENT_NAME;
	}

	public String getSTUDENT_ADDRESS() {
		return STUDENT_ADDRESS;
	}

	public void setSTUDENT_ADDRESS(String sTUDENT_ADDRESS) {
		STUDENT_ADDRESS = sTUDENT_ADDRESS;
	}

	public Depot getDepot() {
		return depot;
	}

	public void setDepot(Depot depot) {
		this.depot = depot;
	}
	
	
}
